﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyWeb.Business;
using MyWeb.Data;
using MyWeb.Common;

namespace MobileRecharge
{
    public partial class Feedback : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnFeedback_Click(object sender, EventArgs e)
        {
            string name = "";
            if (Session["Username"] != null)
            {
                name = Session["Username"].ToString();
            }
            else
                name = "Anonymous";
            tb_FeedbackInfo obj = new tb_FeedbackInfo();
            obj.Content = txtContent.Text;
            obj.Email = txtEmail.Text;
            obj.Status = "1";
            obj.Title = txtTitle.Text;
            obj.reply = "";
            tb_FeedbackService.tb_Feedback_Insert(obj);
            WebMsgBox.Show("Thank for feedback");
        }
    }
}